package gobelinmaker.client;

import java.awt.BasicStroke;
import java.awt.geom.Point2D;

/**
 * Felső fonalszelet alaposztálya.
 *
 * @author imruf84
 */
public class WoolFrontSegmentComponent extends WoolSegmentComponent {

    /**
     * Konstruktor.
     *
     * @param wc fonal
     * @param sc öltés
     * @param from honnan
     * @param to hová
     */
    public WoolFrontSegmentComponent(WoolComponent wc, StitchComponent sc, Point2D from, Point2D to) {
        super(wc, sc, from, to);

        this.wcs = new WoolContourSegment(new BasicStroke(1.5f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_BEVEL), wc.getWool().getColor().getColor(), from, to);
        this.add(this.wcs);
        this.wfs = new WoolFillSegment(new BasicStroke(1.0f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_BEVEL), wc.getWool().getColor().getColor(), from, to);
        this.add(this.wfs);
    }
}
